export default class hammer extends Laya.Script {

    constructor() { 
        super(); 
        this.time_line = null;
    }
    
    onEnable() {
    }
  
    onDisable() {
    }

    play_hammer_anim(){
        this.owner.alpha = 1;
        this.owner.rotation = 0;
        this.time_line = Laya.TimeLine.to(this.owner,{rotation:9},100);
        this.time_line.to(this.owner,{rotation:-9},200);
        this.time_line.to(this.owner,{rotation:0},100);
        this.time_line.to(this.owner,{alpha:0},100,null,500);
        this.time_line.play(0,false);
    }

    onStart(){
        //this.play_hammer_anim();
    }
}